package model

import "gorm.io/gorm"

type RoleModel struct {
	gorm.Model
	RoleName string       `gorm:"size:32;column:role_name;comment:角色名称"`
	UserList []*UserModel `gorm:"many2many:user_role_models"` // user_role_models是连接表，会在声明的时候自动创建
	MenuList []*MenuModel `gorm:"many2many:role_menu_models"`
}
